<template>
    <div class="form-block-inner">
        <Form :model="formItem" label-position="top" ref="baseForm">
            <div class="title-style">影印材料</div>
            <common-files-upload :show-files-list="fileList" @result="resultAction"></common-files-upload>
            <common-save-btn></common-save-btn>
        </Form>
    </div>
</template>

<script>
import CommonSaveBtn from '@/components/common-save-btn/index'
import CommonFilesUpload from '@/components/comon-files-upload/index'

export default {
  name: 'BiaoZhangJiangLiInfo',
  components: { CommonFilesUpload, CommonSaveBtn },
  props: {
    formItem: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data () {
    return {
      fileList: [
        {
          name: '县处级以上党政机关、人民团体等予以表彰、嘉奖、记功和授予荣誉称号的审批表等材料(7-1-1-1 至 7-1-1-100)',
          value: '',
          key: { a: 7, b: 1 },
          desc: '县处级以上党政机关、人民团体等予以表彰、嘉奖、记功和授予荣誉称号的审批(呈报)表、先进人物登记(推荐、审批)表、先进事迹材料\n'
        },
        { name: '撤销奖励的有关材料等(7-2-1-1 至 7-2-1-100)', value: '', key: { a: 7, b: 2 } },
        { name: '享受政府特殊津贴的材料(7-3-1-1 至 7-3-1-100)', value: '', key: { a: 7, b: 3 } }
      ]
    }
  },
  watch: {
    formItem (data) {
      this.fileList[0].value = data.seven_one
      this.fileList[1].value = data.seven_two
      this.fileList[2].value = data.seven_three
    }

  },
  methods: {
    resultAction (data) {
      this.formItem.seven_one = data[0].value
      this.formItem.seven_two = data[1].value
      this.formItem.seven_three = data[2].value
    }
  }
}
</script>

<style scoped>

</style>
